<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.bootcdn.net/ajax/libs/amazeui/2.7.2/css/amazeui.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
</head>
<body>
<button onclick="query1()"></button>
<div id="msgDiv"></div>

<script>

    function query1() {
        let content = {
            "startSeat": 2504,
            "endSeat": 2530,
            "date": "2020-10-08",
            "startTime": "20:50",
            "endTime": "21:30",
            "peopleNum": 2
        };
        $.ajax({
            type: "GET",
            url: "./query/querySeatSection",
            data: content,
            success:function (message) {
                //alert("提交成功"+JSON.stringify(message));
                $('#msgDiv').html(JSON.stringify(message));
            },
            error:function (message) {
                alert("提交失败"+JSON.stringify(message));
            }
        });
    }
</script>
</body>
</html>